// import { groups } from '@/config/acl'

import store from '@/store'

export default function perms (value: number) {
  if (!value) return '-'
  const groups: any[] = (store.state as any)?.app?.permGroups || []
  const map = new Map(groups.map(v => [v.value, v.label]))
  const ret = map.get(value)
  return ret || '自定义权限'
}
